Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added script for the generation of state diagrams #29

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AlkisPlas
Copy link

This provides a first approach to the declarative specification and drawing of UML state diagrams.

@dspinellis
Copy link
Owner

Interesting. Please add examples and documentation (under doc).

@dspinellis
Copy link
Owner

  • Regarding the interface please make it as follows

stategraph [-o output_file] [-v] [input file]

If no files are given, it acts as a filter from stdin to stdout
-v is used for view

  • Use getopt to parse the arguments
  • The customary dot extension is .dot, but you shouldn't be using it in the code as an implicit extension. Use whatever the user provides.

@AlkisPlas
Copy link
Author

I have already changed the interface that way but I did it using the argparse module.
Would you like me to use getopt instead?
The result will be the same.

@dspinellis
Copy link
Owner

argparse is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants